mobilechelonian · PyPI 您所在的位置:网站首页 jupyter notebook turtle mobilechelonian · PyPI

mobilechelonian · PyPI

#mobilechelonian · PyPI| 来源: 网络整理| 查看: 265

“Nevertheless… the turtle moves!” - Small Gods, by Terry Pratchett

This is a Turtle module for the Jupyter Notebook. It’s based on code by aspidites, one of two groups at Macewan University that built Turtle as a class assignment (the other was PACattack; I could have based this on either, but I had to pick one).

Using it looks like this:

from mobilechelonian import Turtle t = Turtle() t.speed(5) colours=["red","blue","yellow","brown","black","purple","green"] t.penup(); t.left(90); t.forward(200);t.right(90);t.pendown() for i in range (0,18): t.pencolor(colours[i%7]) t.right(20) t.forward(50) t.right(180) t.home() sample.png http://mybinder.org/badge.svg


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有